import { Food } from './food.js';

export class Animal {
    name = '';
    weight = 1;
    ratio = 2;

    constructor(name) {
        this.name = name;
    }
    eat(food) {
        this.weight += food.calorie * this.ratio;
    }

}